package eu.ahsx.limboa.media
{
	/**
	 * 	File type handled by the assets manager	
	 *	@author Masy Alexandre
	 * */
	public class MediaFileType
	{
		/**
		 * 	CSS
		 * */
		public static const CSS:String = "css";
		
		/**
		 * 	Font
		 * */
		public static const FONT:String = "font";
		
		/**
		 * 	XML
		 * */
		public static const DATA_XML:String = "dataxml";
		
		/**
		 * 	Data
		 * */
		public static const DATA_TXT:String = "datatxt";
		
		/**
		 *  JSON
		 * */
		public static const DATA_JSON:String = "datajson";
		
		/**
		 * 	AVM2
		 * */
		public static const AVM2:String = "avm2";
		
		/**
		 * 	AVM1
		 * */
		public static const AVM1:String = "avm1";
		
		/**
		 * 	Image
		 * */
		public static const IMAGE:String = "image";
		
		/**
		 * 	Application
		 * */
		public static const APPLICATION:String = "application";	
		
		/**
		 * 	Check if the value is a valid AssetsFileType
		 * 	
		 * 	@param value String
		 * 	@return Boolean	
		 * */
		public static function validate(value:String):Boolean
		{
			return value == CSS || value == FONT || value == DATA_XML || value == DATA_TXT || value == DATA_JSON || value == AVM2 || value == AVM1 || value == IMAGE || value == APPLICATION;
		}
	}
}